package com.tms.firtsp.repository;

import com.tms.firtsp.entities.Student;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface StudentRepository extends JpaRepository<Student, Integer> {
    public List<Student> findAllByOrderByIdDesc();

    public List<Student> findByName(String name);

    public List<Student> findByNameAndPassword(String name, String passsword);

    public List<Student> findByNameLike(String name);



}
